package com.lancer.cloud.generator.service.impl;

import com.lancer.cloud.common.base.service.impl.BaseServiceImpl;
import com.lancer.cloud.generator.mapper.TableInfoMapper;
import com.lancer.cloud.generator.model.entity.TableInfo;
import com.lancer.cloud.generator.model.query.TableInfoQuery;
import com.lancer.cloud.generator.service.TableInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * caijinbang
 * @date 2019-06-16 14:56
 */
@Service
public class TableInfoServiceImpl extends BaseServiceImpl<TableInfoMapper, TableInfo> implements TableInfoService {

    @Autowired
    private TableInfoMapper tableInfoMapper;

    @Override
    public TableInfoQuery findPageByCondition(TableInfoQuery condition) {
        tableInfoMapper.findPageByCondition(condition);
        return condition;
    }

    @Override
    public TableInfo findTableInfoByName(String tableName) {
        return tableInfoMapper.findTableInfoByName(tableName);
    }
}
